﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RapChieuPhim.DTO;
using RapChieuPhim.DAO;
using System.Collections;

namespace RapChieuPhim.BUS
{
    class CTRapBUS
    {
        public static CTRapDTO GetByID(int rap, int phim)
        {
            CTRapDAO ctrDAO = new CTRapDAO();
            return ctrDAO.GetByID(rap, phim);
        }

        public static IList GetAll()
        {
            CTRapDAO ctrDAO = new CTRapDAO();
            return ctrDAO.GetAll();
        }

        public static void Insert(CTRapDTO CTRap)
        {
            CTRapDAO ctrDAO = new CTRapDAO();
            ctrDAO.Insert(CTRap);
        }

        public static void Update(CTRapDTO CTRap)
        {
            CTRapDAO ctrDAO = new CTRapDAO();
            ctrDAO.Update(CTRap);
        }

        public static void Delete(int rap, int phim)
        {
            CTRapDAO ctrDAO = new CTRapDAO();
            ctrDAO.Delete(rap, phim);
        }
    }
}
